﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System;

namespace NlpTrainApp.Bll.Model.Dao
{

    [JsonObject(MemberSerialization.OptIn), Table(Name = "projects_project", DisableSyncStructure = true)]
    public partial class Projects_project
    {

        [JsonProperty, Column(Name = "id", IsPrimary = true)]
        public int Id { get; set; }

        [JsonProperty, Column(Name = "created_by_id")]
        public int? Created_by_id { get; set; }

        [JsonProperty, Column(Name = "polymorphic_ctype_id")]
        public int? Polymorphic_ctype_id { get; set; }

        [JsonProperty, Column(Name = "name", DbType = "VARCHAR(100)", IsNullable = false)]
        public string Name { get; set; }

        [JsonProperty, Column(Name = "description", StringLength = -2, IsNullable = false)]
        public string Description { get; set; }

        [JsonProperty, Column(Name = "guideline", StringLength = -2, IsNullable = false)]
        public string Guideline { get; set; }

        [JsonProperty, Column(Name = "created_at")]
        public DateTime Created_at { get; set; }

        [JsonProperty, Column(Name = "updated_at")]
        public DateTime Updated_at { get; set; }

        [JsonProperty, Column(Name = "project_type", DbType = "VARCHAR(30)", IsNullable = false)]
        public string Project_type { get; set; }

        [JsonProperty, Column(Name = "random_order", DbType = "BOOL", IsNullable = false)]
        public string Random_order { get; set; }

        [JsonProperty, Column(Name = "collaborative_annotation", DbType = "BOOL", IsNullable = false)]
        public string Collaborative_annotation { get; set; }

        [JsonProperty, Column(Name = "single_class_classification", DbType = "BOOL", IsNullable = false)]
        public string Single_class_classification { get; set; }

        [JsonProperty, Column(Name = "allow_member_to_create_label_type", DbType = "BOOL", IsNullable = false)]
        public string Allow_member_to_create_label_type { get; set; }

    }

}
